﻿<div class="post">
    <h1 data-bind="text: title"></h1>
    <div class="post-content" data-bind="html: previewContent"></div>
    <div class="post-meta">
        Posted by <span data-bind="text: author"></span>&nbsp;on&nbsp;<span data-bind="text: time"></span>
        <br />
        Categories: <span data-bind="foreach: selectedCategories">
            <a class="category-link" data-bind="attr: {'href': $data}, text: $data"></a>
        </span>
        <span data-bind="visible: selectedCategories().length==0">Uncategorized</span>
    </div>
</div>